<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>
<%@ taglib uri="/struts-tags" prefix="s"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<sx:head />
<base href="<%=basePath%>">
<style type="text/css">
#fileMenu-mod-top {
	height: 35px;
	line-height: 35px
}
</style>
</head>

<body>
	<center>
		<div id="fileMenu-mod-top">
			<s:if test="%{#session.where==1}">
				<s:a
					href="/OAProject/file/tree_findChild?fileid=%{fileinfo.parentid}">后退</s:a>&nbsp;&nbsp;&nbsp;&nbsp;
           <!--  <a href="/OAProject/admin_cg/fileManage/fileFind.jsp">搜索</a> &nbsp;&nbsp;&nbsp;&nbsp; -->
				<!--  <a href="">文件夹</a> &nbsp;&nbsp;&nbsp;&nbsp; -->
				<s:a
					href="/OAProject/file/file_getFilepath?type=1&fileid=%{fileinfo.fileid}">新增文件夹</s:a> &nbsp;&nbsp;&nbsp;&nbsp;
                <s:a
					href="/OAProject/file/file_getFilepath?type=2&fileid=%{fileinfo.fileid}">新增文件</s:a>
				<br />
			</s:if>
			<s:else>
				<sx:a
					href="/OAProject/file/tree_findChild?fileid=%{fileinfo.parentid}"
					targets="mod-right">后退</sx:a>&nbsp;&nbsp;&nbsp;&nbsp;
                <sx:a
					href="/OAProject/file/file_getFilepath?type=1&fileid=%{fileinfo.fileid}"
					targets="mod-right">新增文件夹</sx:a> &nbsp;&nbsp;&nbsp;&nbsp;
                <sx:a
					href="/OAProject/file/file_getFilepath?type=2&fileid=%{fileinfo.fileid}"
					targets="mod-right">新增文件</sx:a>
				<br />
			</s:else>
		</div>
		<div id="fileMenu-mod-top-two">
			<s:textfield name="filepath" value="%{fileinfo.filepath}"></s:textfield>
			<!-- <a href="">转到...</a> -->
		</div>
		<table bgcolor="EDF2F6">
			<tr bgcolor="88B3C4">
				<th></th>
				<th>名称</th>
				<th>类型</th>
				<th>备注</th>
				<th>所有者</th>
				<th>创建时间</th>
				<th>操作</th>
			</tr>
			<s:iterator value="%{fileinfoList}">
				<tr>
					<td><img width="20px" height="20px"
						src='<s:property value="%{filetypeinfo.filetypeimage}"/>' /></td>
					<td><s:property value="%{filename}" /></td>
					<td><s:property value="%{filetypeinfo.filetypename}" /></td>
					<td><s:property value="%{remark}" /></td>
					<td><s:property value="%{userinfo.username}" /></td>
					<td><s:property value="%{createdate}" /></td>
					<td>
						<%-- <s:a href="/OAProject/file/acc_downLoad">下载</s:a> --%> <s:if
							test="%{#session.where==1}">
							<s:a href="/OAProject/file/tree_findChild?fileid=%{fileid}">打开</s:a>
							<s:a href="/OAProject/file/file_toRecycleBin?fileid=%{fileid}"
								onclick="return confirm('该操作会将文件放入回收箱中，不会彻底删除，是否确定进行此操作？')">删除</s:a>
						</s:if> <s:else>
							<sx:a href="/OAProject/file/tree_findChild?fileid=%{fileid}"
								targets="mod-right">打开</sx:a>
							<sx:a href="/OAProject/file/file_toRecycleBin?fileid=%{fileid}"
								onclick="return confirm('该操作会将文件放入回收箱中，不会彻底删除，是否确定进行此操作？')"
								targets="mod-right">删除</sx:a>
						</s:else>
					</td>
				</tr>
			</s:iterator>

		</table>
	</center>
</body>
</html>
